<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./libs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="./css/shop.css">
    <script src="./libs/jquery-3.4.1.min.js"></script>
    <script src="./libs/bootstrap/js/bootstrap.min.js"></script>
    <script src="./js/fz.js"></script>
   
</head>
<body>
    <nav class="navbar navbar-default">
        <div class="container-fluid navbar-inverse"">
          <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li><a href="#"><b>商品售卖</b></a></li>
                    <li class="active"><a href="#">首页</a></li>
                    <li><a href="#">其他</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right one">
                    <li id="reg" data-toggle="modal" data-target="#shopReg"><a href="#">注册</a></li>
                    <li id="login" data-toggle="modal" data-target="#shoplog"><a href="#">登录</a></li>
                </ul>
                <ul class="nav navbar-nav navbar-right two  hidden">
                  <li><a href="">欢迎您，<b class="ming"></b></a></li>
                  <li class="tuichu"><a href="#">注销</a></li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>

    <div id="container shop-table">
        <div class="row" id="add" style="margin-bottom: 20px;">
             <div class="col-md-8 col-md-offset-2">
                <button class="btn btn-primary btn-add" data-toggle="modal" data-target="#addShop">添加商品</button>
             </div>
        </div>
        <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <table class="table table-bordered table-condensed table-striped table-shop">
                    <thead>
                        <tr>
                            <td>编号</td>
                            <td>商品名称</td>
                            <td>商品价格</td>
                            <td>商品数量</td>
                            <td>操作</td>
                        </tr>
                    </thead>
                    <tbody id="list-tbody"> 

                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <!-- 注册模态框-->
    <div class="modal fade" id="shopReg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
              <h4 class="modal-title" id="myModalLabel">用户注册</h4>
            </div>
            <div class="modal-body form-horizontal">
                <!--用户名-->
                <div class="form-group">
                    <label for="username" class="col-sm-2 control-label">用户名</label>
                    <div class="col-sm-10">
                      <input type="text" class="form-control" name="username" id="username" placeholder="请输入用户名">
                    </div>
                </div>
                <!--密码-->
                <div class="form-group">
                    <label for="password" class="col-sm-2 control-label">密码</label>
                    <div class="col-sm-10">
                      <input type="password" class="form-control" name="password" id="password" placeholder="请输入密码">
                    </div>
                </div>
            </div>

            <div class="modal-footer">
              <button type="button" class="btn btn-default" data-dismiss="modal">退出</button>
              <button type="button" class="btn btn-primary submit">确定</button>
            </div>
          </div>
        </div>
    </div>

    <!-- 登录模态框 -->
    <div class="modal fade" id="shoplog" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
              <h4 class="modal-title" id="myModalLabel">登录</h4>
            </div>
            <div class="modal-body form-horizontal">
                <!--用户名-->
                <div class="form-group">
                  <label for="usernameb" class="col-sm-2 control-label">用户名</label>
                  <div class="col-sm-10">
                    <input type="text" class="form-control" name="username" id="usernameb" placeholder="请输入用户名">
                  </div>
              </div>
              <!--密码-->
              <div class="form-group">
                  <label for="passwordb" class="col-sm-2 control-label">密码</label>
                  <div class="col-sm-10">
                    <input type="password" class="form-control" name="password" id="passwordb" placeholder="请输入密码">
                  </div>
              </div>
            </div>
            <div class="modal-footer">
              <button type="button" class="btn btn-default" data-dismiss="modal">退出</button>
              <button type="button" class="btn btn-primary submitb">确定</button>
            </div>
          </div>
        </div>
    </div>
     
     <!-- Modal -->
  <div class="modal fade" id="addShop" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title" id="myModalLabel">添加商品</h4>
        </div>
        <div class="modal-body form-horizontal">
          <div class="form-group">
            <label for="inputName" class="col-sm-2 control-label">商品名称</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" id="inputName" placeholder="请输入商品名称">
            </div>
          </div>
          <div class="form-group">
            <label for="inputPrice" class="col-sm-2 control-label">商品价格</label>
            <div class="col-sm-10">
              <input type="number" class="form-control" id="inputPrice" placeholder="请输入商品价格">
            </div>
          </div>
          <div class="form-group">
            <label for="inputNum" class="col-sm-2 control-label">商品数量</label>
            <div class="col-sm-10">
              <input type="number" class="form-control" id="inputNum" placeholder="请输入商品数量">
            </div>
          </div>
          <p id="add-info" class="text-center"></p>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
          <button type="button" class="btn btn-primary" id="btn-add">添加</button>
        </div>
      </div>
    </div>
  </div>

 
  <script src="./js/select.js"></script>
  <script src="./js/add.js"></script>
  <script src="./js/reg.js"></script>
  <script src="./js/log.js"></script>
  <script src="./js/edit.js"></script>
</body>
</html>